<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
  xmlns:s="http://jboss.org/schema/seam/taglib"
  xmlns:ui="http://java.sun.com/jsf/facelets"
  xmlns:h="http://java.sun.com/jsf/html"
  template="WEB-INF/template/template.xhtml">

  <ui:define name="page_title">#{msgs['jsf.Error']}</ui:define>
  <ui:param name="showGlobalMessages" value="false"/>
  <ui:define name="center_content">
    <s:fragment
      rendered="#{empty org.jboss.seam.international.statusMessages.currentGlobalMessages}">
      <h2>#{msgs['jsf.NoErrors']}</h2>
    </s:fragment>

    <s:fragment
      rendered="#{not empty org.jboss.seam.international.statusMessages.currentGlobalMessages}">
      <ul class="list--no-bullets">
        <li>
          <div class="alert--danger">
            <h2 class="alert__heading">#{msgs['jsf.ErrorTitle']}</h2>

            <div class="alert__content">
              <ul class="list--no-bullets">
                <ui:repeat
                  value="#{org.jboss.seam.international.statusMessages.currentGlobalMessages}"
                  var="message">
                  <li>#{message.summary}</li>
                </ui:repeat>
              </ul>

              <p>#{msgs['jsf.YouCanHelpUs']}</p>

              <p>
                <button class="button--danger"
                  onclick="window.open('https://bugzilla.redhat.com/enter_bug.cgi?format=guided&amp;product=Zanata')">
                  #{msgs['jsf.ReportThisProblem']}
                </button>
              </p>
            </div>
          </div>
        </li>
      </ul>
    </s:fragment>
  </ui:define>
</ui:composition>
